package com.heima.admin.controller.v1;


import com.heima.admin.service.AdUserLoginService;
import com.heima.model.admin.dtos.AdUserDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 管理员用户信息表 前端控制器
 * </p>
 *
 * @author itheima
 * @since 2022-08-03
 */
@RestController
@RequestMapping("/login")
public class LoginController {
    @Autowired
    AdUserLoginService adUserLoginService;

    @PostMapping("/in")
    public ResponseResult login(@RequestBody AdUserDto dto) {
        return adUserLoginService.login(dto);
    }



}
